/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.velocityme.session;

import com.velocityme.entity.Login;
import com.velocityme.entity.User;
import com.velocityme.utility.Licence;
import java.util.Collection;
import javax.ejb.Local;

/**
 *
 * @author rcrida
 */
@Local
public interface LicenceKeyLocal {

    Login assignLicense(final User user, final String remoteHost);

    void releaseLicence(Login login);

    boolean addEncodedLicence(String encodedLicence);

    void closeCurrentSessions();

    void closeExpiredSessions();

    Collection<Licence> findAllLicences(KeyLocal key);
    
}
